{% extends "base/base_index.html" %}
{% block main %}


<ol class="breadcrumb">
    {%load class_menu_tags%}
    {{classModel|getClassTopMenuHtml}}
</ol>

<div class="well">

<form method="post" action="" class="recipe_form">
    {{form.media}}
  <div class="form-group">
    {{form.themeType}}
  </div>
  <div class="form-group">
    {{form.title}}
  </div>
  <div class="form-group">
    {{form.content}}
  </div>
  <div class="form-group">
    {{form.visitPerm}}
  </div>


        {%ifequal vote 'True'%}
{{ voteAttrForm.management_form }}
  <table class="table">
      {%for f in voteAttrForm%}
      <tr>
          <td>{{f.startTime.label}}</td>
          <td>{{f.startTime}}</td>
      </tr>
      <tr>
          <td>{{f.endTime.label}}</td>
          <td>{{f.endTime}}</td>
      </tr>
      {%endfor%}
  </table>
<code>投票选项</code>
{{ voteForm.management_form }}
  <table class="table">
<tr>
    <td>名称</td>
    <td>排序</td>
    <td>删除</td>
</tr>
            {%for f in voteForm%}
<tr>
    <td>{{f.content}}</td>
    <td>{{f.rank}}</td>
    <td>{{f.DELETE}}</td>
</tr>

            {%endfor%}
  </table>


        {%endifequal%}







<button type="submit" class="btn btn-primary">保存</button>

    </form>
</div>
{%endblock%}